﻿using System;
using System.Collections.Generic;
using Newtonsoft.Json;

namespace GISServer.Core.Client
{
    public class Field
    {
        public Field()
        {
        }
        public Field(string Name, string Type, string Alias)
        {
            this.Name = Name;
            this.Type = Type;
            this.Alias = Alias;
        }
        public Field(string Name, string Type, string Alias, int Length)
        {
            this.Name = Name;
            this.Type = Type;
            this.Alias = Alias;
            this.Length = Length;
        }
        [JsonProperty("name")]
        public string Name { get; set; }

        [JsonProperty("type")]
        public string Type { get; set; }

        [JsonProperty("alias")]
        public string Alias { get; set; }

        [JsonProperty("length")]
        public int Length { get; set; }
    }
}
